from django.db import models
# from rest_fremawork.serializers import ModelSerializer
from rest_framework.serializers import ModelSerializer, SerializerMethodField
from .models import Books, Publish, Auther



class AutherSerializer(ModelSerializer):
    class Meta:
        model = Auther
        fields = "__all__"


class PublishSerializer(ModelSerializer):
    class Meta:
        model = Publish
        fields = "__all__"


class BookSerializer(ModelSerializer):
    class Meta:
        model = Books
        fields = "__all__"




